/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package py.edu.ucom.cadira.game.event;

import java.util.ArrayList;

import org.jdom.Document;
import org.jdom.Element;

import py.edu.ucom.cadira.game.war.WarUser;
import py.edu.ucom.cadira.net.XMLSerializable;

/**
 * 
 * @author largonet
 */
public class GameEvent implements XMLSerializable {
    ArrayList<WarUser> userlist;
    
    /**
	 * @return Returns the userlist.
	 */
	public ArrayList<WarUser> getUserlist() {
		return userlist;
	}

	/**
	 * @param userlist The userlist to set.
	 */
	public void setUserlist(ArrayList<WarUser> userlist) {
		this.userlist = userlist;
	}

	public String toString(){
        StringBuffer buff=new StringBuffer();
//        buff.append("Event: "+getClass().getName());
//        buff.append("User List:\n");
//        for(WarUser user:userlist){
//            buff.append(user.toString()).append("\n");
//        }
        return buff.toString();
    }

	public void toXML(Element root) {
		// TODO Auto-generated method stub
		
	}

	public void fromXML(Document xml) {
		// TODO Auto-generated method stub
		
	}
}
